package com.hdax.dmw.order.mapstruct;

import com.hdax.dmw.dtos.order.TicketBuyerDto;
import com.hdax.dmw.entity.user.DmLinkUser;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

import java.util.List;

@Mapper(componentModel = "spring")
public abstract class TicketBuyerDtoMapper {

    @Mappings({
            @Mapping(source = "id",target = "linkId")
    })
    public abstract TicketBuyerDto toTarget(DmLinkUser source);
    public abstract List<TicketBuyerDto> toTargetList(List<DmLinkUser> sources);
}
